#include <QtGui>
#include <QtSql>

 class SubModel : public QSqlQueryModel {
     Q_OBJECT
 public:
     SubModel(QObject *parent = 0);
     Qt::ItemFlags flags(const QModelIndex &index) const;
     QVariant data(const QModelIndex &index,
                   int role = Qt::DisplayRole) const;
     bool setData(const QModelIndex &index,
                  const QVariant &value, int role);
     int task_id;
     void refresh();
 };

